<include file="Public:header" />
<div class="container main">
    <include file="Public:left" />
    <div class="w790">
        <script>
  	function uploaded(path){
		$("#img_url").attr("src",'__PUBLIC__'+path);
		$("input[name='img_url']").val(path);
	}
	function del_img(){
		if(confirm('您确定要删除图片吗?')){
			var file=$("input[name='img_url']").val();
			$.post("{:U('delImgBypath')}",{'path':file},function(data){
				$("input[name='img_url']").val('');
				$("#img_url").attr('src','');
			});
		}else{ 
			return false;
		}
	}
	//删除图组图片
	function mdel_img(path){
		$('#img_list div img').each(function(index, element) {
			$.post("{:U('delImgBypath')}",{'path':path},function(data){
				if(data=='OK'){
					$('#img_list div').each(function(index, element) {
                        if($(this).attr('url')==path){
							$(this).remove();
						}
                    });
					$('#picmsg input').each(function(index, element) {
                        if($(this).val()==path){
							$(this).remove();
						}
                    });
				}
			});
		});
	}
	
  </script>
        <div class="h">
            <a href="{:U('index')}" class="btn btn-info">
                <i class="glyphicon glyphicon-circle-arrow-left"></i> 返回会员列表
            </a>
        </div>
        <form class="checkoutform2 form-horizontal" action="{:U('insert')}" method="post">
            <input type="hidden" name="id" value="{$info.id}" />
            <div class="container">
                <div class="form-group">
                    <label class="col-sm-2 control-label">用户名</label>
                    <div class="col-sm-10">
                        <input name="username" class="form-control" id="username" type="text"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">昵称</label>
                    <div class="col-sm-10">
                        <input name="nickname" class="form-control" id="nickname" type="text"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">名字</label>
                    <div class="col-sm-10">
                        <input name="name" class="form-control" id="name" type="text" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">级别</label>
                    <div class="col-sm-10">
                        <select class="form-control" name="level" id="level">
                            <option value="">请选择</option>
                            <volist name="getLevelNameList" id="vo">
                                <option <eq name="key" value="$info['level']">selected="selected"</eq>
                                 value="{$key}">{$vo}
                                </option>
                            </volist>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-2 control-label">入职日期</label>
                  <div class="col-sm-10">
                     <input class="form-control"  name="reg_time" type="text" placeholder="入职日期">
                  </div>
               </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">修改密码</label>
                    <div class="col-sm-10">
                        <input name="password" class="form-control" min="6" maxlength="12" id="password" type="password"/>
                    </div>
                </div>
                <!--<div class="form-group">-->
                    <!--<label class="col-sm-2 control-label">固定规则</label>-->
                    <!--<div class="col-sm-10">-->
                        <!--<select multiple class="form-control" name="rule_id[]" size="10" id="rule_id[]">-->
                            <!--<option value="">请选择规则</option>-->
                            <!--<volist name="rule_list" id="vo">-->
                                <!--<option value="{$vo.id}">{$vo.name}</option>-->
                            <!--</volist>-->
                        <!--</select>-->
                    <!--</div>-->
                <!--</div>-->
                <!--<div class="form-group">-->
                    <!--<label class="col-sm-2 control-label">所属分组</label>-->
                    <!--<div class="col-sm-10">-->
                        <!--<select class="form-control" name="role_id[]" size="10" id="role_id[]">-->
                            <!--<option value="">请选择你的分组</option>-->
                            <!--<volist name="role_list" id="vo">-->
                                <!--<option <eq name="vo['user_id']" value="$info['id']">selected="selected"</eq>-->
                                 <!--value="{$vo.id}">{:getdeepstr($vo['cl'])}{$vo.title}-->
                                <!--</option>-->
                            <!--</volist>-->
                        <!--</select>-->
                    <!--</div>-->
                <!--</div>-->
                <div class="pages">
                    <button type="submit" class="btn btn-success">新建</button>
                </div>
            </div>
        </form>
    </div>
    <div class="clear">
    </div>
</div>
</body></html>